package com.gwtt.simulator.netconf.model.rpc.request;

import com.gwtt.simulator.netconf.model.XStreamModel;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@XStreamAlias("rpc")
public class Rpc extends XStreamModel {

    @XStreamAsAttribute
    @XStreamAlias("message-id")
    private String messageId;

    @XStreamAlias("create-subscription")
    private CreateSubscription createSubscription;

    private Get get;

    @XStreamAlias("close-session")
    private String closeSession;

    public Rpc() {
        super("urn:ietf:params:xml:ns:netconf:base:1.0");
    }

}
